From: Sam Reed Date: Tue, 13 Dec 2011 16:58:52 +0000 (+0000) Subject: Followup r106046, pull ar_sha1 in getRevision X-Git-Tag: 1.31.0-rc.0~25998 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=7132aeb38885b63cad267f0186e6a5e09306b11b;p=lhc%2Fweb%2Fwiklou.git Followup r106046, pull ar_sha1 in getRevision --- diff --git a/includes/specials/SpecialUndelete.php b/includes/specials/SpecialUndelete.php index f58aa1d82b..68e35b777d 100644 --- a/includes/specials/SpecialUndelete.php +++ b/includes/specials/SpecialUndelete.php @@ -187,10 +187,12 @@ class PageArchive { 'ar_flags', 'ar_text_id', 'ar_deleted', - 'ar_len' ), + 'ar_len', + 'ar_sha1', + ), array( 'ar_namespace' => $this->title->getNamespace(), - 'ar_title' => $this->title->getDBkey(), - 'ar_timestamp' => $dbr->timestamp( $timestamp ) ), + 'ar_title' => $this->title->getDBkey(), + 'ar_timestamp' => $dbr->timestamp( $timestamp ) ), __METHOD__ ); if( $row ) { return Revision::newFromArchiveRow( $row, array( 'page' => $this->title->getArticleId() ) ); @@ -656,7 +658,7 @@ class SpecialUndelete extends SpecialPage { if ( is_null( $this->mTargetObj ) ) { $out->addWikiMsg( 'undelete-header' ); - + # Not all users can just browse every deleted page from the list if ( $user->isAllowed( 'browsearchive' ) ) { $this->showSearchForm();